package io;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class OSWDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("osw.txt");
        OutputStreamWriter osw = new OutputStreamWriter(fos, StandardCharsets.UTF_8);

        osw.write("歌颂这种平凡,一两句唱不完恩重如山");
        osw.write("回头去想,总是说了谢谢反而才亏欠的情感");

        System.out.println("写完");
        osw.close();
    }
}
